package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * 攻略主题
 */
@Setter
@Getter
public class DestinationlThemeDetial extends BaseDomain {

    private Long parentId;
    private String title;  //主题名称

    private int sequence; //序号
    private String coverUrl;
    public String getJsonString(){
        Map<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",title);
        map.put("sequence",sequence);
        map.put("coverUrl",coverUrl);
        return JSON.toJSONString(map);
    }

}